package com.friends.codegen;

import org.jeecgframework.p3.cg.def.FtlDef;

/**
 * 描述：代码生成器工具类（支持单表）
 *
 */
public class CodeGenerateUtil {

	public static void main(String[] args) {
		//表名
		String code_cg_tables = "author";
		//执行代码生成器
		CodeGenerateFactory.codeGenerateByFTL(code_cg_tables, "作者", FtlDef.KEY_TYPE_02,"authorid");
		CodeGenerateFactory.codeGenerateByFTL("pic", "图片", FtlDef.KEY_TYPE_02,"picid");
		CodeGenerateFactory.codeGenerateByFTL("picgroup", "图集", FtlDef.KEY_TYPE_02,"picgroupid");
		CodeGenerateFactory.codeGenerateByFTL("pictype", "图片类型", FtlDef.KEY_TYPE_02,"pictypeid");
		CodeGenerateFactory.codeGenerateByFTL("user", "用户", FtlDef.KEY_TYPE_02,"userid");
		CodeGenerateFactory.codeGenerateByFTL("userfavoritepic", "用户收藏图片", FtlDef.KEY_TYPE_02,"favoritepicid");
		CodeGenerateFactory.codeGenerateByFTL("userfavoritepicgroup", "用户收藏图集", FtlDef.KEY_TYPE_02,"favoritepicgroupid");
		CodeGenerateFactory.codeGenerateByFTL("userpic", "用户图片", FtlDef.KEY_TYPE_02,"userpicid");
		CodeGenerateFactory.codeGenerateByFTL("userpicgroup", "用户图集", FtlDef.KEY_TYPE_02,"userpicgroupid");
		CodeGenerateFactory.codeGenerateByFTL("usertranspic", "交易记录", FtlDef.KEY_TYPE_02,"usertranspicid");
		CodeGenerateFactory.codeGenerateByFTL("usertranspicgroup", "交易记录", FtlDef.KEY_TYPE_02,"usertranspicgroupid");
	}
}
